package pom;

import org.openqa.selenium.WebDriver;
import org.testng.Assert;

public class Homepage {
        private final WebDriver driver;
        private LoginForm loginf;
        private PFLoginForm pfLoginF;
       
        public Homepage(WebDriver driver)
        {
                this.driver = driver;
               
                Assert.assertTrue(driver.getPageSource().contains("As a graduate of the MPTQA Information Technology program")
                                && driver.getPageSource().contains("Forgot your password?"), "Homepage not appears.");
               
                loginf = new LoginForm(this.driver);
                pfLoginF = new PFLoginForm(this.driver);
        }
       
        public LoginForm getLoginForm()
        {
                return loginf;
        }
        public PFLoginForm getPFLoginForm()
        {
                return pfLoginF;
        }

}

